﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChangePass.aspx.cs" Inherits="ChangePass" Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
 <table cellspacing="0" cellpadding="4" border="0" id="TABLE1" height="430px" runat="server"  width="290px" style="background:url(hinh/login/bg1.PNG) no-repeat; margin-top:80px; margin-left:300px; margin-bottom:80px">
                     <tr>
                     <td>
                     <table style=" margin-left:50px"> 
                                <tr>
                                <td style="font-weight:bold">THAY DỔI PASS<br /><br /><br /><br /></td>
                                </tr>
                                
                                <tr>                    
                                     <td style="width: 216px; text-align: left">
                                            Mật khẩu cũ:<br />
                                                <asp:TextBox ID="txt_matkhau_cu" runat="server" Font-Size="0.8em" TextMode="Password" Width="140px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                    ControlToValidate="txt_matkhau_cu" ErrorMessage="Không được để trống"></asp:RequiredFieldValidator>
                                    </td>
                                        </tr>
                                        <tr>
                                            
                                         
                                            <td style="width: 216px; height: 21px; text-align: left; margin-left:100px">
                                                Mật khẩu mới:<br />
                                                <asp:TextBox ID="txt_mk_moi" runat="server" Font-Size="0.8em" TextMode="Password" Width="140px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_mk_moi"
                                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator></td>
                                        </tr>
                                        <tr>
                                           
                                            <td style="text-align: left; width: 216px; margin-left:100px">
                                                Xác nhận mật khẩu:<br />
                                                <asp:TextBox ID="txt_nlmk_moi" runat="server" Font-Size="0.8em" TextMode="Password" Width="140px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_nlmk_moi"
                                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator></td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: center; width:216px">
                                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_nlmk_moi"
                                                    ControlToValidate="txt_mk_moi" ErrorMessage="Mật khẩu mới phải trùng với mật khẩu xác nhận." CultureInvariantValues="True" Display="Dynamic"></asp:CompareValidator>
                                                <br />
                                                <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="Sai mật khẩu!" Visible="false"></asp:Label></td>
                                        </tr>
                                       
                                        <tr>
                                            <td style="text-align: left; width: 216px;">
                                               
                                                
                                                <telerik:RadButton ID="cmdChangePassword" runat="server" Text="Đổi mật khẩu" Skin="Hay"  ValidationGroup="ChangePassword1" OnClick="cmdChangePassword_Click">
                                                </telerik:RadButton>
                                               
                                                <telerik:RadButton ID="Cancle" runat="server" Text="Quay lại" Skin="Hay" 
                                                    NavigateUrl="index.aspx" PostBackUrl="~/index.aspx">
                                                </telerik:RadButton>
                                            </td>
                                        </tr>
                                   
                            <tr>
                                
                                <td style="height: 39px; text-align: center; width: 216px;">
                                    &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Label ID="Label1" runat="server" Text='Thay đổi mật khẩu thành công !<a href="login.aspx">Đăng Nhập</a>'
                                        Visible="False"></asp:Label></td>
                            </tr>
                  </table>
                  </td>
                  </tr>
                          
</table>

</asp:Content>

